﻿using EnvironSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace SkillSystem
{
    public abstract class SkillEffectCtrlBase : MonoBehaviour
    {
        protected SkillEffectProcesser CurEffectProcesser;

        protected Action OnDamage;
        public virtual void Init(SkillEffectProcesser processer)
        {
            CurEffectProcesser = processer;
        }

        public abstract Dictionary<AreaType, IAreaArgs> GetDamageArea();

        public void RegisterDamageEvent(Action onDamage)
        {
            OnDamage += onDamage;
        }

        public abstract void Refresh();
    }
}
